<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_ticket.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_ticket.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_ticket',
                    name: 'T_ticket',
                    url: "/T_ticket/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_attributes":"","c_valid_begin_date":"","c_use_time":"","c_use_method":"","c_timing_opportunity":"","c_timing_method":"","c_timing_end_time":"","c_timing_begin_time":"","c_times":"","c_ticket_code":"","c_snowseason":"","c_sku_id":"","c_remain_times":"","c_remain_duration":"","c_parent_card_id":"","c_order_item_id":"","c_order_item":"","c_order_id":"","c_name":"","c_member_id":"","c_is_used":"","c_id":"","c_gates":"","c_duration":"","c_disabled":"","c_disable_time":"","c_create_time":"","c_category_name":"","c_category_id":"","c_card_id":"","c_valid_end_date":"","c_version":""},
                editFormOptions: [[{"title":"c_attributes","field":"c_attributes","type":"text"},
                               {"title":"验证开始时间","required":true,"field":"c_valid_begin_date","type":"datetime"},
                               {"title":"核销时间","field":"c_use_time","disabled":true,"type":"text"},
                               {"title":"c_use_method","field":"c_use_method","type":"text"}],
                              [{"title":"c_timing_opportunity","field":"c_timing_opportunity","type":"text"},
                               {"title":"c_timing_method","field":"c_timing_method","type":"text"},
                               {"title":"c_timing_end_time","required":true,"field":"c_timing_end_time","disabled":true,"type":"text"},
                               {"title":"c_timing_begin_time","required":true,"field":"c_timing_begin_time","disabled":true,"type":"text"}],
                              [{"title":"次数","required":true,"field":"c_times","type":"text"},
                               {"title":"c_ticket_code","field":"c_ticket_code","type":"text"},
                               {"title":"雪季","required":true,"field":"c_snowseason","type":"text"},
                               {"title":"c_sku_id","field":"c_sku_id","type":"text"}],
                              [{"title":"剩余次数","required":true,"field":"c_remain_times","type":"text"},
                               {"title":"剩余时长","required":true,"field":"c_remain_duration","type":"text"},
                               {"title":"c_parent_card_id","field":"c_parent_card_id","disabled":true,"type":"text"},
                               {"title":"c_order_item_id","field":"c_order_item_id","disabled":true,"type":"text"}],
                              [{"title":"c_order_item","field":"c_order_item","type":"text"},
                               {"title":"c_order_id","field":"c_order_id","type":"text"},
                               {"title":"c_name","field":"c_name","type":"text"},
                               {"title":"c_member_id","field":"c_member_id","type":"text"}],
                              [{"title":"是否核销","required":true,"field":"c_is_used","type":"text"},
                               {"title":"票id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"c_gates","field":"c_gates","type":"text"},
                               {"title":"时长","required":true,"field":"c_duration","type":"text"}],
                              [{"title":"弃用","required":true,"field":"c_disabled","type":"text"},
                               {"title":"弃用时间","field":"c_disable_time","disabled":true,"type":"text"},
                               {"title":"创建时间","required":true,"field":"c_create_time","disabled":true,"type":"datetime"},
                               {"title":"c_category_name","field":"c_category_name","type":"text"}],
                              [{"title":"c_category_id","field":"c_category_id","type":"text"},
                               {"title":"c_card_id","field":"c_card_id","disabled":true,"type":"text"},
                               {"title":"验证结束时间","required":true,"field":"c_valid_end_date","type":"text"},
                               {"title":"c_version","required":true,"field":"c_version","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_attributes',title:'c_attributes',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_valid_begin_date',title:'验证开始时间',type:'bigint',width:120,require:true,align:'left'},
                       {field:'c_use_time',title:'核销时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_use_method',title:'c_use_method',type:'string',width:120,align:'left'},
                       {field:'c_timing_opportunity',title:'c_timing_opportunity',type:'string',width:120,align:'left'},
                       {field:'c_timing_method',title:'c_timing_method',type:'string',width:120,align:'left'},
                       {field:'c_timing_end_time',title:'c_timing_end_time',type:'bigint',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_timing_begin_time',title:'c_timing_begin_time',type:'bigint',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_times',title:'次数',type:'int',width:120,require:true,align:'left'},
                       {field:'c_ticket_code',title:'c_ticket_code',type:'string',width:120,align:'left'},
                       {field:'c_snowseason',title:'雪季',type:'string',width:120,require:true,align:'left'},
                       {field:'c_sku_id',title:'c_sku_id',type:'string',width:120,align:'left'},
                       {field:'c_remain_times',title:'剩余次数',type:'int',width:120,require:true,align:'left'},
                       {field:'c_remain_duration',title:'剩余时长',type:'decimal',width:120,require:true,align:'left'},
                       {field:'c_parent_card_id',title:'c_parent_card_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_order_item_id',title:'c_order_item_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_order_item',title:'c_order_item',type:'string',width:120,align:'left'},
                       {field:'c_order_id',title:'c_order_id',type:'string',width:120,align:'left'},
                       {field:'c_name',title:'c_name',type:'string',width:120,align:'left'},
                       {field:'c_member_id',title:'c_member_id',type:'string',width:120,align:'left'},
                       {field:'c_is_used',title:'是否核销',type:'sbyte',width:120,require:true,align:'left'},
                       {field:'c_id',title:'票id',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_gates',title:'c_gates',type:'string',width:120,align:'left'},
                       {field:'c_duration',title:'时长',type:'decimal',width:120,require:true,align:'left'},
                       {field:'c_disabled',title:'弃用',type:'sbyte',width:120,require:true,align:'left'},
                       {field:'c_disable_time',title:'弃用时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_create_time',title:'创建时间',type:'bigint',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_category_name',title:'c_category_name',type:'string',width:120,align:'left'},
                       {field:'c_category_id',title:'c_category_id',type:'string',width:120,align:'left'},
                       {field:'c_card_id',title:'c_card_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_valid_end_date',title:'验证结束时间',type:'bigint',width:120,require:true,align:'left'},
                       {field:'c_version',title:'c_version',type:'int',width:120,require:true,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
